package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 数据告警任务
 */
@Component
@Slf4j
public class AlertJob {

    @Autowired
    private IAlertRuleService alertRuleService;

    public void deviceDataAlertFilter(){
        log.info("数据告警任务开始运行....");
        alertRuleService.alertFilter();
        log.info("数据告警任务运行结束....");
    }
}